﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElectronicCommerce.Framework.Payment.Contract.DataContract;
using ElectronicCommerce.Framework.Payment.Contract.DataContract.History;

namespace ElectronicCommerce.Framework.Payment.Data.Interfaces
{
    public interface IChargeHistoryRepository
    {

        /// <summary>
        /// 添加收费请求
        /// </summary>
        /// <param name="request"></param>
        void InsertChargeRequestHistory(ChargeRequest request);

        /// <summary>
        /// 添加收费响应
        /// </summary>
        /// <param name="result"></param>
        void InsertChargeResponseHistory(ChargeCallbackResult result);

        /// <summary>
        /// 获取收费交易详情
        /// </summary>
        /// <param name="soID"></param>
        /// <returns></returns>
        ChargeHistory GetChargeHistory(string soID);

        /// <summary>
        /// 获取网关交易流水号
        /// </summary>
        /// <param name="soID"></param>
        /// <returns></returns>
        string GetOutSOID(string soID);
    }
}
